// 使用Maybe重写ex4,不要有if语句
// app.js
const fp = require('lodash/fp')
const { Maybe, Container } = require('./support')
let ex4 = function (n) {
    if (n) {
        return parseInt(n)
    }
}

let ex4_ = function (n) {
    let maybe =  Maybe.of(n)
    return maybe.map(parseInt)
}

console.log(ex4_('100'))